package cn.tedu.submarine;

import javax.swing.*;

public class Bomb extends SeaObject{
    public Bomb(int x,int y){
        super(9,12,x,y,3);
    }

    public ImageIcon getImage(){
        return Images.bomb;
    }

    public  void move(){
        y +=speed;
    }

    public boolean outOfBounds(){
        return y>=World.HEIGHT;
    }
}
